//注销js
function logout(){
    if(confirm("是否确定注销？")){
        //1.取后端删除 session信息
        jQuery.ajax({
            url:"/user/logout",
            type:"POST",
            data:{},
            success:function(res){} 
        });
        //2.跳转到登录页
        location.href = "login.html";
    }
}
